package com.lyc.dao.imp;

import java.sql.SQLException;

import com.lyc.dao.AdminInfoDAO;
import com.lyc.entity.AdminInfo;
import com.lyc.util.DBUtil;


/**
 * @Program: medal
 * @Author: YC
 * @Date: 2022/5/5 17:39
 */

public class AdminInfoDAOImpl extends DBUtil.BaseDAOImpl<AdminInfo> implements AdminInfoDAO {

	@Override
	public AdminInfo selectByName(String name) throws SQLException {
		String str = "select * from admin_info where admin_name = ?";
		return DBUtil.selectOne(str, AdminInfo.class, name);
	}

}
